Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: close #9771 fix comments with ( and ) #9800

Merged
merged 4 commits into from
Mar 8, 2024

Conversation

AlexanderBrevig
Copy link
Contributor

@AlexanderBrevig AlexanderBrevig commented Mar 4, 2024

Jumped forward three years for the OCaml tree-sitter :)

Fixes #9771 for all languages.

@AlexanderBrevig AlexanderBrevig marked this pull request as draft March 4, 2024 00:52
@AlexanderBrevig

This comment was marked as resolved.

@AlexanderBrevig

This comment was marked as resolved.

@AlexanderBrevig AlexanderBrevig marked this pull request as ready for review March 4, 2024 02:25
@AlexanderBrevig
Copy link
Contributor Author

AlexanderBrevig commented Mar 4, 2024

I think I'll need help on this

EDIT: thanks for sparring!

This is now fixed.

[
"("
")"
] @punctuation.bracket

Is no longer needed with the new upstream grammar as far as I can tell.

https://github.com/stsewd/tree-sitter-comment/blob/aefcc2813392eb6ffe509aa0fc8b4e9b57413ee1/grammar.js#L75-L78

runtime/queries/ocaml/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/ocaml/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/ocaml/highlights.scm Outdated Show resolved Hide resolved
@the-mikedavis the-mikedavis added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. A-language-support Area: Support for programming/text languages labels Mar 4, 2024
@AlexanderBrevig
Copy link
Contributor Author

Thanks for the review! I'll remember to check against those scopes if I happen to be in this situation again 👍🏻

@AlexanderBrevig AlexanderBrevig changed the title fix: close #9771 update OCaml fix: close #9771 fix comments with ( and ) Mar 4, 2024
@the-mikedavis the-mikedavis added S-waiting-on-review Status: Awaiting review from a maintainer. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 4, 2024
@archseer archseer merged commit fd89c3c into helix-editor:master Mar 8, 2024
6 checks passed
@AlexanderBrevig AlexanderBrevig deleted the 9771-fix-update-ocaml branch March 8, 2024 08:53
postsolar pushed a commit to postsolar/helix that referenced this pull request Apr 4, 2024
…tor#9800)

* fix: close helix-editor#9771 update OCaml

* fix: no longer match on ( ) as the underlying grammar handles these

* fix: implement excellent corrections from review

* fix: module -> namespace to match theme scopes
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
…tor#9800)

* fix: close helix-editor#9771 update OCaml

* fix: no longer match on ( ) as the underlying grammar handles these

* fix: implement excellent corrections from review

* fix: module -> namespace to match theme scopes
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
…tor#9800)

* fix: close helix-editor#9771 update OCaml

* fix: no longer match on ( ) as the underlying grammar handles these

* fix: implement excellent corrections from review

* fix: module -> namespace to match theme scopes
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
…tor#9800)

* fix: close helix-editor#9771 update OCaml

* fix: no longer match on ( ) as the underlying grammar handles these

* fix: implement excellent corrections from review

* fix: module -> namespace to match theme scopes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OCaml comment highlight is broken
3 participants